import express from "express";

// 用户类控制器
import Life from "../controller/life";
const lifeController = new Life();

const Router = express.Router();

Router.get("/list", lifeController.list)
  .get("/check", lifeController.check)
  .get("/remove", lifeController.remove)
  .post("/add", lifeController.add)
  .post("/finish", lifeController.finish)
  .post("/setTop", lifeController.setTop)
  .post("/update", lifeController.update)
  .post("/batch", lifeController.batch);

export default Router;
